import {request} from '../utils/request'

export const userLogin = (userinfo)=>{
  return request.post('/1.1/login',userinfo)
}

export const userReg = (userinfo)=>{ //此处的userinfo中，包含，账号、密码、角色
  return request.post('/1.1/users',userinfo)
}

export const userRole = (roleObj)=>{ //新增角色
  return request.post('/1.1/classes/CakeRole',roleObj)
}

export const userRoleList = ()=>{ //角色列表
  return request.get('/1.1/classes/CakeRole')
}

